package com.cq.base.retrofit

/**
 * 作者: CQ
 * 日期: 2021-03-26
 * 说明:
 */
class UserA {
    fun main(){
        RetrofitFactory.getInstance().getService(ApiService::class.java).getRankingList()
            .compose(RetrofitFactory.retrofitFactory.setThread<String>())
            .subscribe(object : BaseObserver<String>(){
                override fun onSuccess(t: String) {
                    TODO("Not yet implemented")
                }

                override fun onFailure(e: Throwable?, isNetWorkError: Boolean) {
                    TODO("Not yet implemented")
                }
            })

    }
}